package com.cstp.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * @author watts
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("t_prize")
public class Prize extends Model<Prize> {

    @TableId(type = IdType.AUTO)
    private Long id;

    private String name;

    private Integer type;

    private Integer num;

    private Integer chance;

    private String jumpUrl;

    private String remark;

    private LocalDateTime createTime;

    private LocalDateTime modifyTime;

    @Version
    private Integer version;
}
